package com.linjiahao.userCenter.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.linjiahao.servicebase.common.ResultMap;
import com.linjiahao.userCenter.domain.ChatFriend;
import com.linjiahao.userCenter.vo.AddFriendVO;
import com.linjiahao.userCenter.vo.AddOrRejectVO;
import net.sourceforge.pinyin4j.format.exception.BadHanyuPinyinOutputFormatCombination;


/**
 * @ClassName ChatFriendService
 * @Description: 用户好友服务抽象类
 * @Author linjiahao
 * @Date 6/1/2022
 **/
public interface ChatFriendService extends IService<ChatFriend> {

    ResultMap applyFriend(AddFriendVO addFriendVO,Long userId);

    ResultMap getFriendList(Long userId) throws BadHanyuPinyinOutputFormatCombination;

    ResultMap getApplyFriendList(Long userId);

    ResultMap addOrRejectFriend(AddOrRejectVO addOrRejectVO, Long userId);

    ResultMap searchMyFriend(String keyWord, Long userId) throws BadHanyuPinyinOutputFormatCombination;
}
